<%@page import="com.wenwu.common.utils.Uploader" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
	Uploader up = new Uploader(request);
	up.setSavePath("D:/ATHome_file/upload/images");
	String[] fileType = { ".gif", ".png", ".jpg", ".jpeg", ".bmp" };
	up.setAllowFiles(fileType);
	up.setMaxSize(204800); //单位KB
	up.absoluteUpload();
	//System.out.println(up.getUrl());
	response.getWriter().print(
			"{'original':'" + up.getOriginalName() + "','url':'"
					+ up.getUrl() + "','title':'" + up.getOriginalName()
					+ "','state':'" + up.getState() + "'}");
	
%>
